
// 从main.js搬迁过来
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

const pinia=createPinia()
pinia.use(persist)

export default pinia

// export * from './modules/user'
// import {useUserStore} from './modules/user'
// export{useUserStore}

// import {useCountStore} from './modules/counter'
// export{useCountStore}

//等价于下面的代码
export * from './modules/user'
export * from './modules/counter'